package dome6多接口;

public class Main {
    public static void main(String[] args) {
        B b = new B("小猫");
        C c = new C("小鸟");
        E e = new E("鸭子");
        b.run();
        c.fly();
        e.fly();
        e.swim();
        e.run();
    }
}
